<template>
  <el-form :inline="true" :model="form">
    <el-form-item>
      <el-input v-model="form.keywords" placeholder="请输入关键字" class="item"></el-input>
    </el-form-item>
    <el-form-item>
      <el-select v-model="form.examineStatus" placeholder="未通过" class="item">
        <el-option label="未通过" :value="2"></el-option>
        <el-option label="已通过" :value="1"></el-option>
      </el-select>
    </el-form-item>
    <el-form-item label="起始时间">
      <el-date-picker type="date" v-model="form.starTime" class="item" />
    </el-form-item>

    <el-form-item label="结束时间">
      <el-date-picker type="date" v-model="form.endTime" class="item" />
    </el-form-item>
    <el-form-item label="省">
      <el-select v-model="form.provinceId" placeholder="省份" class="item">
        <el-option
          v-for="item of provinceList"
          :key="item.id"
          :value="item.id"
          :label="item.name"
        />
      </el-select>
    </el-form-item>
    <el-form-item label="市">
      <el-select v-model="form.cityId" class="item">
        <el-option label="杭州" value="杭州" v-for="item of []" :key="item.id"></el-option>
      </el-select>
    </el-form-item>
    <el-form-item label="医院">
      <el-input v-model="form.hosphital" class="item"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">查询</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  props: ['form', 'provinceList'],
  data() {
    return {}
  },
  methods: {
    onSubmit() {
      console.log('submit!')
      this.$emit('onSubmit')
    }
  }
}
</script>

<style scoped>
.item {
  width: 120px;
}
</style>
